CREATE TABLE [dbo].[TTMONE]
(
[CO_MONE] [dbo].[TD_VC_003] NOT NULL,
[DE_MONE] [dbo].[TD_VC_050] NULL,
[SB_MONE] [dbo].[TD_VC_003] NULL,
[TI_TIPO_MONE] [dbo].[TD_VC_002] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTMONE__CO_USUA___6991A7CB] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTMONE__FE_USUA___6A85CC04] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTMONE__CO_USUA___6B79F03D] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTMONE__FE_USUA___6C6E1476] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTMONE] ADD CONSTRAINT [PK__TTMONE__2608C79D6A1BB7B0] PRIMARY KEY CLUSTERED  ([CO_MONE]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTMONE] ADD CONSTRAINT [FK__TTMONE__TI_TIPO___53F76C67] FOREIGN KEY ([TI_TIPO_MONE]) REFERENCES [dbo].[TTTIPO_MONE] ([TI_TIPO_MONE])
GO
GRANT SELECT ON  [dbo].[TTMONE] TO [public]
GRANT INSERT ON  [dbo].[TTMONE] TO [public]
GRANT DELETE ON  [dbo].[TTMONE] TO [public]
GRANT UPDATE ON  [dbo].[TTMONE] TO [public]
GO
